﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Diagnostics;

namespace ZDT.Test
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Debug.Listeners.Add(new ConsoleTraceListener());
            Debug.Listeners.Add(new DefaultTraceListener());
            Debug.Listeners.Add(new DelimitedListTraceListener(@"Delimited.log"));
            Debug.Listeners.Add(new EventLogTraceListener());
            Debug.Listeners.Add(new EventSchemaTraceListener(@"EventSchema.log"));
            Debug.Listeners.Add(new TextWriterTraceListener());
            Trace.Listeners.Add(new ConsoleTraceListener());
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

        public static void Log(string log)
        {
            Debug.WriteLine(log);
        }
        public static void Log(object obj, string category)
        {
            Debug.WriteLine(obj,category);
        }
    }
}
